package com.fancy.learncenter.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.fancy.learncenter.R;
import com.fancy.learncenter.utils.FileUtils;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class CatoonExpandActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_catoon_expand);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.my_expand, R.id.back, R.id.expand_train, R.id.expand_read})
    public void onViewClicked(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.my_expand:
                intent = new Intent(this, CartoonExpandReleaseLocalActivity.class);
                intent.putExtra(CartoonMyListenAndSpeakActivity.FILE_PATH_KEY, FileUtils.getExpandRecorderAudioPath());
                startActivity(intent);
                break;
            case R.id.expand_train:
                intent = new Intent(this, CartoonExpandTrainListActivity.class);
                startActivity(intent);
                break;
            case R.id.expand_read:
                intent = new Intent(this, CartoonReadListActivity.class);
                startActivity(intent);
                break;
            case R.id.back:
                finish();
                break;
        }
    }

}
